package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Prodoutbound {
    private String prodoutboundid;
    private Date outdate;
    private String proid;
    private Integer outnum;
    private String direction;

    @Id
    @Column(name = "prodoutboundid")
    public String getProdoutboundid() {
        return prodoutboundid;
    }

    public void setProdoutboundid(String prodoutboundid) {
        this.prodoutboundid = prodoutboundid;
    }

    @Basic
    @Column(name = "outdate")
    public Date getOutdate() {
        return outdate;
    }

    public void setOutdate(Date outdate) {
        this.outdate = outdate;
    }

    @Basic
    @Column(name = "proid")
    public String getProid() {
        return proid;
    }

    public void setProid(String proid) {
        this.proid = proid;
    }

    @Basic
    @Column(name = "outnum")
    public Integer getOutnum() {
        return outnum;
    }

    public void setOutnum(Integer outnum) {
        this.outnum = outnum;
    }

    @Basic
    @Column(name = "direction")
    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Prodoutbound that = (Prodoutbound) o;

        if (prodoutboundid != null ? !prodoutboundid.equals(that.prodoutboundid) : that.prodoutboundid != null)
            return false;
        if (outdate != null ? !outdate.equals(that.outdate) : that.outdate != null) return false;
        if (proid != null ? !proid.equals(that.proid) : that.proid != null) return false;
        if (outnum != null ? !outnum.equals(that.outnum) : that.outnum != null) return false;
        if (direction != null ? !direction.equals(that.direction) : that.direction != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = prodoutboundid != null ? prodoutboundid.hashCode() : 0;
        result = 31 * result + (outdate != null ? outdate.hashCode() : 0);
        result = 31 * result + (proid != null ? proid.hashCode() : 0);
        result = 31 * result + (outnum != null ? outnum.hashCode() : 0);
        result = 31 * result + (direction != null ? direction.hashCode() : 0);
        return result;
    }
}
